﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ModelLayer.Appointments
{
    public class Visit
    {
        private Guid patientOID;

        public Guid PatientOID
        {
            get { return patientOID; }
            set { patientOID = value; }
        }

        private string visitNumberId;

        public string VisitNumberId
        {
            get { return visitNumberId; }
            set { visitNumberId = value; }
        }

        private DateTime admitTime;

        public DateTime AdmitTime
        {
            get { return admitTime; }
            set { admitTime = value; }
        }

        private DateTime dischargeTime;

        public DateTime DischargeTime
        {
            get { return dischargeTime; }
            set { dischargeTime = value; }
        }

        private string accessionNumber;

        public string AccessionNumber
        {
            get { return accessionNumber; }
            set { accessionNumber = value; }
        }

        private string purpose;

        public string Purpose
        {
            get { return purpose; }
            set { purpose = value; }
        }

        private bool isAppointment;

        public bool IsAppointment
        {
            get { return isAppointment; }
            set { isAppointment = value; }
        }

        public static Visit NewVisit(Guid patientOID, string visitNumberId, DateTime admitTime, DateTime dischargeTime, string accessionNumber, string purpose, bool isAppointment)
        {
            Visit visit = new Visit();
            visit.PatientOID = patientOID;
            visit.VisitNumberId = visitNumberId;
            visit.AdmitTime = admitTime;
            visit.DischargeTime = dischargeTime;
            visit.AccessionNumber = accessionNumber;
            visit.Purpose = purpose;
            visit.isAppointment = isAppointment;
            return visit;
        }
    }
}
